package com.bienvenue.main.ui.activity.personal;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.bienvenue.main.R;
import com.bienvenue.main.adapter.WelfareListAdapter;
import com.bienvenue.main.base.BaseActivity;
import com.chad.library.adapter.base.BaseQuickAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.ui.activity
 * @ClassName: PositionDetailsActivity
 * @Description: 职位详情
 * @Author: Mr.Chen
 * @CreateDate: 2020/9/8 15:38
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/8 15:38
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class PositionDetailsActivity extends BaseActivity {

    List<String> stringList = new ArrayList<>();
    @BindView(R.id.rv_welfare_list)
    RecyclerView rvWelfareList;

    WelfareListAdapter mAdapter;

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        LinearLayoutManager manager = new LinearLayoutManager(this);
        manager.setOrientation(LinearLayoutManager.HORIZONTAL);
        rvWelfareList.setLayoutManager(manager);
        mAdapter = new WelfareListAdapter();
        rvWelfareList.setAdapter(mAdapter);
        stringList.add("带薪年假");
        stringList.add("五险一金");
        stringList.add("下午茶");
        stringList.add("周末双休");
        stringList.add("弹性工作");
        mAdapter.setNewData(stringList);
        mAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
            @Override
            public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
                showToast("此功能暂未实现");
            }
        });


    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_position_details;
    }

    @OnClick(R.id.iv_return_btn)
    void onFinish() {
        this.finish();
    }

    @OnClick(R.id.tv_share_btn)
    void onShare() {
        showToast("此功能暂未实现");
    }

    @OnClick(R.id.tv_collection_btn)
    void onCollection() {
        showToast("此功能暂未实现");
    }

    @OnClick(R.id.tv_message_btn)
    void onMessage() {
        showToast("此功能暂未实现");
    }
}
